package com.chuantou.yuba.api.to;

import java.util.ArrayList;
import java.util.List;

import com.chuantou.yuba.pojo.Pageable;
import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class TrendsListTO extends Pageable implements Parcelable {
	@SerializedName("feedlist")
	private List<TrendsTO> trendsList;
	// 当前页码
	@SerializedName("p")
	private int currentPage;

	public TrendsListTO() {
	}

	public TrendsListTO(Parcel source) {
		// TODO 需要序列化时再做
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO 需要序列化时再做
	}

	public static final Creator<TrendsListTO> CREATOR = new Creator<TrendsListTO>() {

		@Override
		public TrendsListTO[] newArray(int size) {
			return new TrendsListTO[size];
		}

		@Override
		public TrendsListTO createFromParcel(Parcel source) {
			return new TrendsListTO(source);
		}
	};

	@Override
	public int getCurrentPage() {
		return currentPage;
	}

	public List<TrendsTO> getTrendsList() {
		return trendsList == null ? new ArrayList<TrendsTO>() : trendsList;
	}

	public void setTrendsList(List<TrendsTO> trendsList) {
		this.trendsList = trendsList;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

}
